﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Kangaroo.Shell.Utils
{
    static class UIHelper
    {
        public static void EnableToolStripButtons(params ToolStripItem[] controls)
        {
            EnableToolStripButtons(true, controls);
        }

        public static void DisableToolStripButtons(params ToolStripItem[] controls)
        {
            EnableToolStripButtons(false, controls);
        }

        private static void EnableToolStripButtons(bool enable, params ToolStripItem[] controls)
        {
            foreach (var control in controls)
            {
                control.Enabled = enable;
            }
        }
    }
}
